<div class="mainWrap">
<!--{template "topic_publish"}-->
<!--{hook/global_index_common_top}-->
 <div class="listBox">
	 <!--{if in_array($this->Code,array('myhome','tag','qun','recd','other','bbs','cms','department','channel','nedu','topicnew')) || $this->Get[gid] !=''}-->
	<div class="topicNav">
		<div class="nfTagB">
			<ul> 
				<!--#if NEDU#-->
				<!--{if defined('NEDU_MOYO')}-->
					<!--{echo nui('jsg')->hook('topic.common.middle.tabs.first');}-->
				<!--{/if}-->
				<!--#endif#-->
				<!--我关注的人 Begin--> 
				<!--{eval if($this->Code == 'myhome') $myhome= "current";}-->
				<li class="{$myhome}">
					<span id="follow_menu_wp">
						<a href="index.php?mod=topic&code=myhome" title="我和我关注人的{$this->Config['changeword']['n_weibo']}">关注的人</a>
					</span>
				</li>
				<!--我关注的人 End-->

				<!--我关注的频道 Begin-->
				<!--{if $this->Channel_enable && $this->Config['channel_enable']}-->
				<!--{eval if($this->Code == 'channel') $mychan= "current";}-->
				<li class="{$mychan}">
					<span>
						<a href="index.php?mod=topic&code=channel" title="我关注的频道{$this->Config['changeword']['n_weibo']}">我的频道</a>
					</span>
				</li>
				<!--{/if}-->
				<!--我关注的频道 End-->

				<!--{if $this->Config[department_enable]}-->
				<!--{eval if($this->Code == 'department') $department= "current";}-->
				<li class="{$department}">
					<span>
						<a href="index.php?mod=topic&code=department" title="我的{$d_d_name}及我关注的{$d_d_name}的{$this->Config['changeword']['n_weibo']}">{$d_d_name}{$this->Config['changeword']['n_weibo']}</a>
					</span>
				</li>
				<!--{/if}-->
				
				<!--{if $this->Config['qun_setting']['qun_open']}-->
				<!--我的圈子 Begin-->
				<!--{eval if($this->Code == 'qun') $qun= "current";}-->
				<li class="{$qun}">
					<span id="qun_menu_wp">
							<a href="index.php?mod=topic&code=qun" title="我加入{$this->Config['changeword']['weiqun']}的{$this->Config['changeword']['n_weibo']}" class="wp_id">我的{$this->Config['changeword']['weiqun']}</a>
					</span>
				</li>
				<!--我的圈子 End-->
				<!--{/if}-->
				
				<!--{eval if($this->Code == 'tag') $tag= "current w90";}-->
				<li class="{$tag}">
					<span><a href="index.php?mod=topic&code=tag" title="我关注话题相关的{$this->Config['changeword']['n_weibo']}">关注的话题</a></span>
				</li>

				<!--{eval if($this->Code == 'topicnew') $topicnew= "current";}-->
				<li class="{$topicnew}">
					<span><a href="index.php?mod=topic&code=topicnew" title="最新的{$this->Config['changeword']['n_weibo']}">最新内容</a></span><em class="navNew"></em>
				</li>
				
				<!--{eval if($this->Code == 'recd') $recd= "current";}-->
				<!-- 
				<li class="{$recd}">
					<span><a href="index.php?mod=topic&code=recd" title="官方推荐的内容">官方推荐</a>
					</span>
				</li>
				 -->
				<!--{if ($this->Config['dedecms_enable'] == 1)}-->
				<!--{eval if($this->Code == 'cms') $cms= "current";}-->
				<li class="{$cms}">
					<span><a href="index.php?mod=topic&code=cms" title="我收藏的资讯分类的内容">我的资讯</a>
					<!--{if !($this->Config[dzbbs_enable] || ($this->Config[phpwind_enable] && $this->Config[pwbbs_enable]))}--><em class="navNew"></em><!--{/if}--></span>
				</li>
				<!--{/if}-->

				<!--{if $this->Config[dzbbs_enable] || ($this->Config[phpwind_enable] && $this->Config[pwbbs_enable])}-->
				<!--{eval if($this->Code == 'bbs') $bbs= "current";}-->
				<li class="{$bbs}">
					<span><a href="index.php?mod=topic&code=bbs" title="我收藏的论坛版块的帖子">我的论坛</a><em class="navNew"></em></span>
				</li>
				<!--{/if}-->
                
				<!--#if NEDU#-->
				<!--{if defined('NEDU_MOYO')}-->
					<!--{echo nui('jsg')->hook('topic.common.middle.tabs.last');}-->
				<!--{/if}-->
				<!--#endif#-->
				
                <script language="javascript" type="text/javascript" src="templates/default/js/date/WdatePicker.js"></script>
				<li><span><a href="index.php?mod=topic&code=topicnew" title="查看最新微博"><span id="demospan">{eval echo jget('date') ? jget('date') : date('Y-m-d');}</span></a></span></li> 
                <script type="text/javascript">
                    function date_view(date) {
                    	window.location.href = thisSiteURL + 'index.php?mod=topic&code=topicnew&date=' + date;
                    	/*
                        admincpfilename= "index.php";
                        if(window.location.search){
                            var dateQ = "&date="+date;
                            window.location.href=window.location.pathname+window.location.search.replace(/(\&date=\d*\-\d*\-\d*)+/g,"")+dateQ;
                        }else{
                            if(window.location.pathname){
                                url_path=window.location.pathname.replace(/\/(date\-\d*\-\d*\-\d*)+/g,"");
                            }
                            
                            var dateQ = "/date-"+date;
                            window.location.href=url_path+dateQ;
                        }
                        */
                        return false;
                    }
                </script>
                <img onClick="WdatePicker({el:'demospan',onpicked:function(dp){date_view(dp.cal.getDateStr());}})" 
                src="templates/default/js/date/skin/datePicker.gif" width="16" height="22" align="absmiddle" style="cursor:pointer" />
                
				<script type="text/javascript">
				 $(document).ready(function(){
				 $("#follow_m_1").mouseover(function(){$("#follow_morelist").show();});
				 $("#follow_m_1").mouseout(function(){$("#follow_morelist").hide();});
				 $("#follow_m_2").mouseover(function(){$("#sel_morelist").show();});
				 $("#follow_m_2").mouseout(function(){$("#sel_morelist").hide();});
				 });
				</script>
				<!--{hook/global_index_common_tab_extra1}-->
			</ul>
			<div class="clear"></div>
		</div>
		<div class="groupBg index_m">
		  <div class="left">
			  <!--{if $this->Code=='qun' || $this->Code=='tag'}-->
				  <!--群和话题筛选 Begin-->
				  <a title="查看最近更新的{$this->Config['changeword']['n_weibo']}" href="index.php?mod=topic&code={$this->Code}&view=new" class="{$active['new']}">最新{$this->Config['changeword']['n_weibo']}</a>
				  <a title="查看最新的评论" href="index.php?mod=topic&code={$this->Code}&view=new_reply" class="{$active['new_reply']}">最新评论</a>
				  <a title="官方推荐" href="index.php?mod=topic&code={$this->Code}&view=recd" class="{$active['recd']}">官方推荐</a>
				  <!--群和话题筛选 End-->
			  <!--{elseif $this->Code=='cms'}-->
				  <a href="index.php?mod=topic&code=cms" class="{$active['all']}">全部</a>
			  <!--{elseif $this->Code=='myhome'}-->
				  <!--我关注的 Begin-->
				  <a href="index.php?mod=topic&code=myhome" title="" class="{$active['all']}">全部</a>
				  <!--{if !empty($grouplist2)}-->
					  <!--{if $grouplist2}-->
						<!--{loop $grouplist2 $group}-->
							<a title="{$group['name']}" href="index.php?mod=topic&code={$this->Code}&gid={$group['id']}" class="{$active[$group['id']]}">{$group['name']}</a>
						<!--{/loop}-->
					  <!--{/if}-->
					  <!--{if $group_count <= $cut_num}-->
								<a href="javascript:;" onclick="showFollowGroupAddDialog();" title="">添加分组</a>
					  <!--{else}-->
							  <span id="follow_m_1"><a href="index.php?mod=topic&code=myhome" >更多</a>
							  <ul class="index_ml" id="follow_morelist">
								<!--{eval $__no_del_group=true;}-->
						<li><!--{template "topic_group_ajax"}--></li>
								<li class="B_linedot"></li>
								<li class="slA"><a href="javascript:void(0)" onclick="showFollowGroupAddDialog();">添加分组</a></li>
								<li class="slM"><a href="index.php?mod={$member[username]}&code=follow">管理分组</a></li>
							  </ul>
							  </span>
					  <!--{/if}--> 
				  <!--{else}-->
					  <a href="javascript:;" onclick="showFollowGroupAddDialog();" title="">添加分组</a>
				  <!--{/if}-->
				  <!--我关注的 End-->
			  <!--{elseif $this->Code=='recd'}-->
				<a title="查看官方推荐" href="index.php?mod=topic&code=recd&view=all" class="{$active['all']}">全部</a>
				<a title="查看最新的评论" href="index.php?mod=topic&code=recd&view=new_reply" class="{$active['new_reply']}">最新评论</a>
			  <!--{elseif $this->Code=='department'}-->
				<a title="查看所有我的{$d_d_name}及我关注的{$d_d_name}{$this->Config['changeword']['n_weibo']}" href="index.php?mod=topic&code=department&view=all" class="{$active['all']}">全部</a>
				<a title="查看我的{$d_d_name}{$this->Config['changeword']['n_weibo']}" href="index.php?mod=topic&code=department&view=my" class="{$active['my']}">我的{$d_d_name}</a>
				<a title="查看我关注的{$d_d_name}{$this->Config['changeword']['n_weibo']}" href="index.php?mod=topic&code=department&view=other" class="{$active['other']}">我关注的{$d_d_name}</a>
			  <!--{elseif $this->Code=='bbs'}-->
				<!--{if $this->Config[dzbbs_enable]}-->
				<a title="查看我收藏的版块帖子" href="index.php?mod=topic&code=bbs&view=favorites" class="{$active['favorites']}">收藏的版块</a>
				<!--{/if}-->
				<a title="查看我收藏的帖子" href="index.php?mod=topic&code=bbs&view=favorite" class="{$active['favorite']}">收藏的帖子</a>
				<a title="查看我发布的主题帖子" href="index.php?mod=topic&code=bbs&view=thread" class="{$active['thread']}">我发布的</a>
				<a title="查看我回复的帖子" href="index.php?mod=topic&code=bbs&view=reply" class="{$active['reply']}">我回复的</a>
				<a title="查看论坛所有版块帖子" href="index.php?mod=topic&code=bbs&view=all" class="{$active['all']}">全部版块</a>
			  <!--{elseif $this->Code=='channel'}-->
			  <!--{eval if('top' == $orderby) $top = 'current';elseif('mark' == $orderby) $mark = 'current';elseif('dig' == $orderby) $dig = 'current';		elseif('ldig' == $orderby) $ldig = 'current';else $post = 'current';}-->
				<a class="{$post}" href="index.php?mod=topic&code=channel&orderby=post">最新发布</a>
				<a class="{$dig}" href="index.php?mod=topic&code=channel&orderby=dig">最新{$this->Config[changeword][dig]}</a>
				<a class="{$mark}" href="index.php?mod=topic&code=channel&orderby=mark">最新回应</a>
				<a class="{$ldig}" href="index.php?mod=topic&code=channel&orderby=ldig">热门{$this->Config[changeword][dig]}</a>
				<a class="{$top}" href="index.php?mod=topic&code=channel&orderby=top">推荐置顶</a>
			  <!--{elseif $this->Code=='topicnew'}-->
			  <!--{eval if('post' == $orderby) $post = 'current';	elseif('mark' == $orderby) $mark = 'current';else $dig = 'current';}-->
				<a class="{$dig}" href="index.php?mod=topic&code=topicnew&orderby=dig">最新{$this->Config[changeword][dig]}</a>
				<a class="{$post}" href="index.php?mod=topic&code=topicnew&orderby=post">最新发布</a>
				<a class="{$mark}" href="index.php?mod=topic&code=topicnew&orderby=mark">最新回应</a>
			  <!--{/if}-->
			  <!--#if NEDU#-->
			  <!--{if defined('NEDU_MOYO')}-->
				<!--{echo nui('jsg')->hook('topic.common.middle.subtabs.load');}-->
			  <!--{/if}-->
			  <!--#endif#-->
		  </div>
		  <!--{hook/global_index_common_tab_extra2}-->
		  <!--{eval 
			$filter_ary = array(
				'all' => array('name'=>'全部','tips' => '查看全部'.{$this->Config['changeword']['n_weibo']}),
				'pic' => array('name'=>'图片','tips' => '含图片'),
				'video' => array('name'=>'视频','tips' => '含视频'),
				'music' => array('name'=>'音乐','tips' => '含音乐'),
				'vote' => array('name'=>'投票','tips' => '含投票'),
				'event' => array('name'=>'活动','tips' => '含活动'),
			);
			}-->
			<!--{eval if($this->Config['vote_open'] != 1)unset($filter_ary['vote']);}-->
			<!--{eval if($this->Config['event_open'] != 1)unset($filter_ary['event']);}-->
			<!--{eval if($this->Config['fenlei_open'] != 1)unset($filter_ary['fenlei']);}-->
			<!--{eval $_fkey = empty($this->Get['type']) ? 'all' : $this->Get['type'];}-->
			<!--{eval !isset($filter_ary[$_fkey]) && $_fkey = 'all';}-->
			<!--{if !in_array($this->Code,array('cms','bbs','department','channel','topicnew'))}-->
		  <div class="right">
			<div style="float:left">筛选：</div>
			  <span id="follow_m_2"><a href="{$type_url}&type={$_fkey}" >{$filter_ary[$_fkey]['name']}</a>
			  <ul class="index_ml index_ml_2" id="sel_morelist">
				<!--{loop $filter_ary $key $f}-->
					<!--{if $key != $_fkey}-->
						<li><a title="{$f['tips']}" href="{$type_url}&type={$key}" >{$f['name']}</a></li>
					<!--{/if}-->
				<!--{/loop}-->
			  </ul>
			  </span>
			<div class="clear"></div>
		  </div>
		  <!--{/if}-->

		  <div class="clear"></div>
		</div>		
	</div>
	<!--{/if}-->
	<!--{eval if(MEMBER_ID == $member[uid]) $_my = '我'; else $_my = $member[nickname];}-->
	  <!--{if in_array($this->Code,array('myfavorite','favoritemy'))}-->
	  <div class="listBoxNav">
	  <ul class="boxNav">
		<!--{if 'myfavorite'==$this-> Code}-->
		<li class="boxNavselect"><a href="index.php?mod=topic&code=myfavorite">我的收藏</a></li>
		<!--{else}-->
		<li><a href="index.php?mod=topic&code=myfavorite" >我的收藏</a></li>
		<!--{/if}-->
		<!--{if 'favoritemy'==$this-> Code}-->
		<li class="boxNavselect"><a href="index.php?mod=topic&code=favoritemy">收藏我的</a></li>
		<!--{else}-->
		<li><a href="index.php?mod=topic&code=favoritemy">收藏我的</a></li>
		<!--{/if}-->
	  </ul>
	  <!--{hook/global_index_common_tab_favorite}-->
	  </div>
	  <!--{/if}-->
	  <!--{if 'mycomment'==$this->Code || 'my_reply'==$this->Get[type]}-->
	  <div class="listBoxNav">
	   <ul class="boxNav">
	   <!--{if 'mycomment'==$this->Code}-->
		<li class="boxNavselect"><a href="index.php?mod=topic&code=mycomment">评论我的</a></li>
		<!--{else}-->
		<li><a href="index.php?mod=topic&code=mycomment" >评论我的</a></li>
		<!--{/if}-->
		<!--{if 'tocomment'==$this->Get[type]}-->
		<li class="boxNavselect"><a href="index.php?mod={$member[username]}&type=my_reply">我的评论</a></li>
		<!--{else}-->
		<li><a href="index.php?mod={$member[username]}&type=my_reply">我的评论</a></li>
		<!--{/if}-->
	   </ul>
	   <!--{hook/global_index_common_tab_comment}-->
	   </div>
	   <!--{/if}-->
	   <!--{hook/global_index_common_topic_top}-->
	   <div id="ajax_recommend"></div>
	   <div id="ajax_reminded"></div>
	   <div id="listTopicMsgArea"></div>
		<!--#if NEDU#-->
		<!--{if defined('NEDU_MOYO')}-->
			<!--{echo nui('jsg')->hook('topic.common.middle.dsp.load');}-->
		<!--{/if}-->
		<!--#endif#-->
	  <div id="listTopicArea"<!--#if NEDU#--><!--{if defined('NEDU_MOYO')}--><!--{echo nui('jsg')->cssstyle('topic.common.middle.list.topic.area');}--><!--{/if}--><!--#endif#-->>
		<!--微博列表 Begin-->
		<!--{eval $pagehtml_not = true;}-->
		<!--{subtemplate topic_list_ajax}-->
		<!--微博列表 End-->
		<div id="ajaxtopic"></div>
		<!--{hook/global_index_common_topic_bottom}-->
		<div id="pageinfo"></div>
		<div id="pagehtml">
		  <!--{if $page_arr[html]}-->
          <div class="pageStyle">
            <li>{$page_arr[html]}</li>
          </div>
          <!--{/if}-->
		</div>
	  </div>
	  <!--{hook/global_index_common_bottom}-->
	</div>
  </div>
  <script type="text/javascript">
  <!--{if $isloading}-->var isLoading = true;<!--{else}-->var isLoading = false;<!--{/if}-->
  if(isLoading){$('#pageinfo').html('');$("#pagehtml").hide();}var ajaxkeys = new Array();var onloading = false;var ajaxnum = 0;
  <!--{loop $ajaxkey $key $val}-->
  ajaxkeys[{$key}] = '{$val}';
  <!--{/loop}-->
  $(window).bind('scroll resize',function(event){if(isLoading && !onloading){var bodyTop = document.documentElement.scrollTop + document.body.scrollTop;if(bodyTop+$(window).height() >= ($('#listTopicArea').height()+300)){loadtopic(ajaxkeys[ajaxnum],'',1);}}});
  </script>
